package com.bawei.park2211a.visit

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.AddVisitEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class AddVisitViewModel @Inject constructor(var apiService: ApiService):BaseViewModel(){
    var addVisitSuccess=MutableLiveData<AddVisitEntity>()
    fun addVisit(addVisitEntity: AddVisitEntity){
       httpRequest({apiService.addVisit(addVisitEntity)},{addVisitSuccess.postValue(it)})
    }
}